<?php
	include_once '../dao/Project_DAO.php';
	
	class Project_Service{
		public function __construct(){
			
		}
		
		public function getList_Project($cate_id,$offset=null, $limit=null){
			$dao = new Project_DAO();
			return  $dao->getList_Projects($cate_id,$offset, $limit);
		}
                public function getProject_Detail($id){
			$dao = new Project_DAO();
			return  $dao->getProject_Detail($id);
		}
                public function getProject_Descript($id){
			$dao = new Project_DAO();
			return  $dao->getProject_Descript($id);
		}
		public function getRows(){
			$dao = new Project_DAO();
			return  $dao->getRows();
		}
               
		public function insert_Project($project){
			$dao = new Project_DAO();
			$dao->insert_Project($project);
		}
		public function update_Project($Project){
			$dao = new Project_DAO();
			$dao->update_Project($Project);
		}
		public function delete_Project($id){
			$dao = new Project_DAO();
			$dao->delete_Project($id);
		}
	}
?>